package com.ljl.ssm.controller;

import com.github.pagehelper.PageInfo;
import com.ljl.ssm.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
public class JumpController {
    @Autowired
    IProductService productService;

    @RequestMapping(value = "login",method = RequestMethod.GET)
    public String doLogin(){
        return "login";
    }



    @RequestMapping(value = "index",method = RequestMethod.GET)
    public String goHome(Model model){

        return "index";
    }

    @RequestMapping(value = "register",method = RequestMethod.GET)
    public String doRegister(){
        return "register";
    }

}